riscv: Add a SYSCON driver for Andestech's PLMT
authorRick Chen <[email protected]>
Tue, 2 Apr 2019 07:56:40 +0000 (15:56 +0800)
committerAndes <[email protected]>
Mon, 8 Apr 2019 01:45:08 +0000 (09:45 +0800)
commita1f24875c346a1bf8940b793a27364631d9aabf7
treed3117a234e71e0518a3f0589b4d21db3d00ca696
parent0d389468e2144f3ba3bdbc566c05c0c05dc14fc6
riscv: Add a SYSCON driver for Andestech's PLMT

The platform-Level Machine Timer (PLMT) block
holds memory-mapped mtime register associated
with timer tick.

This driver implements the riscv_get_time() which
is required by the generic RISC-V timer driver.

Signed-off-by: Rick Chen <[email protected]>
Cc: Greentime Hu <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Lukas Auer <[email protected]>
arch/riscv/Kconfig
arch/riscv/include/asm/global_data.h
arch/riscv/include/asm/syscon.h
arch/riscv/lib/Makefile
arch/riscv/lib/andes_plmt.c [new file with mode: 0644]